<?php if ($a[title]) {

  echo $a[form]; ?>
  <table width="100%"><tr><td class=componentheading colspan=2><?php echo HEADING_TITLE ?></td></tr> 
  <tr><td colspan="2" align="right"><?php echo FORM_REQUIRED_INFORMATION ?></td></tr>
<tr><td colspan="2"><?php echo $errorMess ?></td></tr>
<tr><td colspan="2">
  <?php echo $a[name]  ?> *<br>
  <?php echo $a[name_input]; ?>
</td></tr><tr><td colspan=2>
<?php echo $a[company] ?> *<br><?php echo $a[company_input] ?></td></tr>
<tr><td><?php echo $a[email] ?> *<br><?php echo $a[email_input]  ?></td><td><?php echo $a[phone] ?> * <br> <?php echo $a[phone_input]  ?></td>
        </tr>
        <tr>
          <td><?php echo $a[country]  ?><br><?php echo$a[country_input]  ?></td><td><?php echo $a[state]  ?><br><?php echo$a[state_input] ?></td>
        </tr>
        <tr>
          <td colspan="2">
 <table>
              <tr class="sectiontableheader">
                <td><?php echo$a[remove] ?></td>
                <td><?php echo$a[manufacturer] ?></td>
                <td><?php echo$a[model] ?></td>
                <td><?php echo$a[quantity] ?></td>
                <td><?php echo$a[price] ?></td>
              </tr>
             <?php 
            for($i = 0; $i < $count; $i++) {
            ?>
 <tr>
                <td align="center"><?php echo $a[remove_input][$i] ?></td>
                <td><?php echo $a[manufacturer_input][$i] ?></td>
                <td><?php echo $a[model_input][$i] ?></td>
                <td><?php echo $a[quantity_input][$i] ?></td>
                <td><?php echo $a[price_input][$i] ?></td>
              </tr>
              <?php
              }
              ?>
              <tr>
                <td colspan="2" valign="bottom"><?php echo $a[update] ?></td>
                <td colspan="3" valign="middle" align="right">Add More Line: <input type="text" name="more" size="3"><br><?php echo $a[more_button] ?></td>
              </tr> 
               </table>
          </td>
        </tr>
        <tr>
          <td colspan="2"><?php echo$a[user] . $a[user_input] ?></td>
        </tr> 
         <tr>
          <td><?php echo $a[need_quote] ?><br><?php echo $a[need_quote_input] ?></td><td><?php echo $a[hear] ?><br><?php echo $a[hear_input] ?></td>
        </tr>
        <tr>
          <td colspan="2"><?php echo $a[hear_other] ?><br><?php echo $a[hear_other_input] ?></td>
        </tr>
        <tr>
          <td colspan="2">
            <?php echo $a[enquiry] ?><br>
            <?php echo $a[enquiry_input] ?>
          </td>
        </tr>
        <tr>
          <td> 
          <?php 
          if (isset($a[button_shopping])){
          ?>
          <a href="<?php echo $a[button_shopping_link] ?>"><?php echo $a[button_shopping] ?></a> 
         <?php
          }
          ?>
          </td>
          <td align="right">
            <?php echo $a[button] ?>
          </td>
        </tr>
      <?php
    }else {
    ?>
     <table width="100%"><tr><td class=componentheading colspan=2><?php echo HEADING_TITLE ?></td></tr> 
       <tr><td><p style="padding-top: 10px;"><?php echo $a[main_text] ?></p>
      <p align="right"><a href="<?php echo $a[button_link] ?>"><?php echo $a[button] ?></a></p>
      <?php
    }
    ?>
   </td>
    <td valign=top><img src="images/blank.gif" width="20" height="1" alt="" border="0"></td>
  </tr>
</table>
</form>